
<div class="container">
	<div class="no-gutter row">
      		<!-- left sidebar column -->
  			<div class="col-md-2">
          	<div class="panel panel-default" id="leftCol">
                <div class="panel-heading" style="background-color:#009CC2;color:#fff;">Info AMCC</div> 
                <div class="panel-body"><!--Start Panel Body-->
                    <ul class="nav nav-stacked">
                        <?php foreach($info as $r): ?>
                        <li><a href="<?php echo base_url();?>web/detailinfo/<?php echo $r['id_info'];?>/<?php echo $r['judul'];?>">
                        <?php echo $r['judul']; ?>
                        </a></li>
                        <?php endforeach; ?>

                    </ul>
                </div><!--/panel sidebar-->

                <div class="panel-heading" style="background-color:#009CC2;color:#fff;">Materi</div> 
                <div class="panel-body"><!--Start Panel Body 2-->
              			<div class="accordion" id="accordion2">
                        <div class="accordion-group">
                            <div class="accordion-heading">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse1">
                                    Desktop Programming
                                </a>
                            </div>
                            <div id="collapse1" class="accordion-body collapse in">
                                <div class="accordion-inner">
                                     <ul  class="nav nav-stacked" style="padding-left:8px;">
                                        <?php if($this->session->userdata('is_login')){ ?>
                                            <?php foreach($materi_desktop as $m): ?>
                                                <li><a href="<?php echo base_url();?>web/download/<?php echo $m['nama_file'];?>"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach;
                                        ?>
                                        <?php 
                                        } else { ?>
                                            <script>
                                                var haruslogin = function (){
                                                    alert("Anda harus login terlebih dahulu!");
                                                }
                                            </script>
                                            <?php foreach($materi_desktop as $m): ?>
                                                <li><a onClick="haruslogin()" href="#" title="anda harus login" id="must_login"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach; ?>
                                        <?php 
                                        } ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="accordion-group">
                            <div class="accordion-heading">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse2">
                                    Hardware
                                </a>
                            </div>
                            <div id="collapse2" class="accordion-body collapse">
                                <div class="accordion-inner">
                                    <ul  class="nav nav-stacked" style="padding-left:8px;">
                                        <?php if($this->session->userdata('is_login')){ ?>
                                            <?php foreach($materi_hardware as $m): ?>
                                                <li><a href="<?php echo base_url();?>web/download/<?php echo $m['nama_file'];?>"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach;
                                        ?>
                                        <?php 
                                        } else { ?>
                                            <script>
                                                var haruslogin = function (){
                                                    alert("Anda harus login terlebih dahulu!");
                                                }
                                            </script>
                                            <?php foreach($materi_hardware as $m): ?>
                                                <li><a onClick="haruslogin()" href="#" title="anda harus login" id="must_login"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach; ?>
                                        <?php 
                                        } ?>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="accordion-group">
                            <div class="accordion-heading">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse3">
                                    Web Programming
                                </a>
                            </div>
                            <div id="collapse3" class="accordion-body collapse">
                                <div class="accordion-inner">
                                    <ul class="nav nav-stacked" style="padding-left:8px;">
                                       <?php if($this->session->userdata('is_login')){ ?>
                                            <?php foreach($materi_web as $m): ?>
                                                <li><a href="<?php echo base_url();?>web/download/<?php echo $m['nama_file'];?>"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach;
                                        ?>
                                        <?php 
                                        } else { ?>
                                            <script>
                                                var haruslogin = function (){
                                                    alert("Anda harus login terlebih dahulu!");
                                                }
                                            </script>
                                            <?php foreach($materi_web as $m): ?>
                                                <li><a onClick="haruslogin()" href="#" title="anda harus login" id="must_login"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach; ?>
                                        <?php 
                                        } ?>
                                    </ul> 
                                </div>
                            </div>
                        </div>
                        <div class="accordion-group">
                            <div class="accordion-heading">
                                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse4">
                                    Jaringan
                                </a>
                            </div>
                            <div id="collapse4" class="accordion-body collapse">
                                <div class="accordion-inner">
                                    <ul class="nav nav-stacked" style="padding-left:8px;">
                                        <?php if($this->session->userdata('is_login')){ ?>
                                            <?php foreach($materi_jaringan as $m): ?>
                                                <li><a href="<?php echo base_url();?>web/download/<?php echo $m['nama_file'];?>"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach;
                                        ?>
                                        <?php 
                                        } else { ?>
                                            <script>
                                                var haruslogin = function (){
                                                    alert("Anda harus login terlebih dahulu!");
                                                }
                                            </script>
                                            <?php foreach($materi_jaringan as $m): ?>
                                                <li><a onClick="haruslogin()" href="#" title="anda harus login" id="must_login"><?php echo $m['judul'];?> </a></li>
                                            <?php endforeach; ?>
                                        <?php 
                                        } ?>
                                    </ul> 
                                </div>
                            </div>
                        </div>

                    </div>
                </div><!--/panel body-->

                <div class="panel-heading" style="background-color:#009CC2;color:#fff;">Info AMCC</div> 
                <div class="panel-body"><!--Start Panel Body-->
                    <a class="twitter-timeline" href="https://twitter.com/amcc_amikom" data-widget-id="348422632284241920" data-chrome="nofooter" data-theme="light" width="495" height="200">Tweets by @amcc_amikom</a>
                      <script>
                        !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
                      </script>
                </div><!--/panel sidebar-->

            </div><!--/panel-->
      	</div><!--/end left column-->